package org.hawk.gwt.ppc.parser;

/**
 * Interface to ternary java operator.
 * 
 * @author alex.bereznevatiy@gmail.com
 *
 */
public interface TernaryExpressionDescriptor extends ExpressionDescriptor {
	
	/**
	 * @return condition expression of ternary operator.
	 */
	ExpressionDescriptor getCondition();
	
	/**
	 * @return expression that executes when condition is <code>true</code>.
	 */
	ExpressionDescriptor getTrueExpression();
	
	/**
	 * @return expression that executes when condition is <code>false</code>.
	 */
	ExpressionDescriptor getFalseExpression();
}
